﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CRM.Models
{
    [Table("config_user")]
    [Comment("用户配置")]
    [Index(nameof(User), Name = "Uid")]
    public class UserConfig :BaseModel
    {
        [Column("oid"), Comment("贴牌OEM ID(分区id)"), Required]
        public int OemId { get; set; }
        [Column("uid"), Comment("关联用户"), Required]
        public User User;
    }
}